package com.aaa.lockscreen.appwidget;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
import android.widget.Toast;

import androidx.annotation.Nullable;

/**
 * create by water.yuan
 * on 2020-11-30
 */
public class ClickService extends Service {
    private static final String TAG = ClickReceiver.class.getSimpleName();

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        Log.d(TAG, "onStartCommand: " + intent + " flags=" + flags + " startId=" + startId);
        Toast.makeText(getApplicationContext(), "ClickActivity", Toast.LENGTH_SHORT).show();
        return super.onStartCommand(intent, flags, startId);
    }
}
